import { TiledTile, Vec2 } from "cc";
import { ecs } from "db://app-game/libs/ecs/ECS";

/** 障碍物基础数据组 */
@ecs.register("ObstacleModel")
export class ObstacleModelComp extends ecs.Comp {
  /** 瓷砖 */
  tiled: TiledTile;
  /** 瓷砖尺寸 */
  tiledBox: { width: number; height: number };
  /** 位置 */
  pos: Vec2;
  reset(entity: ecs.Entity): void {
    this.tiled = null!;
  }
}
